<template>
	<view class="content">
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {
      this.get()
		},
		methods: {
      get(){
        this.$R.get("http://api.xygeng.cn/one").then(res=>{
          this.title = res.data.content
        })
      }
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}


	.text-area {
		display: flex;
		justify-content: center;
    width: 80%;
	}

	.title {
		font-size: 32rpx;
		color: #000000;
	}
</style>
